package com.kingdee.eas.custom.rcbudget.ekingwin.www.esb.QMYX_SUNAC_363_easBrokerageBillApprove;

import com.kingdee.eas.custom.rcbudget.ekingwin.www.esb.header.v1.holders.HeaderHolder;
import java.rmi.RemoteException;
import javax.xml.rpc.ServiceException;
import javax.xml.rpc.Stub;

public class QMYX_SUNAC_363_easBrokerageBillApprove_pttProxy
  implements QMYX_SUNAC_363_easBrokerageBillApprove_ptt
{
  private String _endpoint = null;
  private QMYX_SUNAC_363_easBrokerageBillApprove_ptt qMYX_SUNAC_363_easBrokerageBillApprove_ptt = null;

  public QMYX_SUNAC_363_easBrokerageBillApprove_pttProxy() {
    _initQMYX_SUNAC_363_easBrokerageBillApprove_pttProxy();
  }

  public QMYX_SUNAC_363_easBrokerageBillApprove_pttProxy(String endpoint) {
    this._endpoint = endpoint;
    _initQMYX_SUNAC_363_easBrokerageBillApprove_pttProxy();
  }

  private void _initQMYX_SUNAC_363_easBrokerageBillApprove_pttProxy() {
    try {
      this.qMYX_SUNAC_363_easBrokerageBillApprove_ptt = new QMYX_SUNAC_363_easBrokerageBillApprove_pttBindingQSServiceLocator().getQMYX_SUNAC_363_easBrokerageBillApprove_pttBindingQSPort();
      if (this.qMYX_SUNAC_363_easBrokerageBillApprove_ptt != null)
        if (this._endpoint != null)
          ((Stub)this.qMYX_SUNAC_363_easBrokerageBillApprove_ptt)._setProperty("javax.xml.rpc.service.endpoint.address", this._endpoint);
        else
          this._endpoint = ((String)((Stub)this.qMYX_SUNAC_363_easBrokerageBillApprove_ptt)._getProperty("javax.xml.rpc.service.endpoint.address"));
    }
    catch (ServiceException localServiceException)
    {
    }
  }

  public String getEndpoint() {
    return this._endpoint;
  }

  public void setEndpoint(String endpoint) {
    this._endpoint = endpoint;
    if (this.qMYX_SUNAC_363_easBrokerageBillApprove_ptt != null)
      ((Stub)this.qMYX_SUNAC_363_easBrokerageBillApprove_ptt)._setProperty("javax.xml.rpc.service.endpoint.address", this._endpoint);
  }

  public QMYX_SUNAC_363_easBrokerageBillApprove_ptt getQMYX_SUNAC_363_easBrokerageBillApprove_ptt()
  {
    if (this.qMYX_SUNAC_363_easBrokerageBillApprove_ptt == null)
      _initQMYX_SUNAC_363_easBrokerageBillApprove_pttProxy();
    return this.qMYX_SUNAC_363_easBrokerageBillApprove_ptt;
  }

  public Response QMYX_SUNAC_363_easBrokerageBillApprove(QMYX_SUNAC_363_easBrokerageBillApprove parameters, HeaderHolder parameters2) throws RemoteException, QueryFault_Element {
    if (this.qMYX_SUNAC_363_easBrokerageBillApprove_ptt == null)
      _initQMYX_SUNAC_363_easBrokerageBillApprove_pttProxy();
    return this.qMYX_SUNAC_363_easBrokerageBillApprove_ptt.QMYX_SUNAC_363_easBrokerageBillApprove(parameters, parameters2);
  }
}